<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: guosheng < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace plugins\crawler\validate;

use think\Validate;

class CrawlerSiteValidate extends Validate
{

    protected $rule = [
        'sitename'        => 'require',
        'siteurl'         => 'require',
        'charset'         => 'require',
    ];

    protected $message = [
        'sitename.require'           => '站点名不能为空',
        'siteurl.require'            => '站点url不能为空',
        'charset.require'            => '站点字符集不能为空',
    ];

}